package com.bupt.vueblog.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 谭继好
 * @Description 从数据库查出来的评论对象
 * @date 2024-04-09 09:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {

    private Integer id;
    private Integer userId;
    private Integer articleId;
    private String content;
    private Integer likeNum;
    private Integer parent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
